import saveManager from "../save/SaveManager.js";
import SaveManager from "../save/SaveManager.js";

class CharacterBase {
    cell_type = 'character'
    id;
    name;
    where = {
        col: 0,
        row: 0
    };
    belong;
    hp;
    max_hp;
    mp;
    max_mp;
    attack;
    range = 1;

    constructor() {

    }

    getImage(name = 'headimage') {
        return `/src/libs/images/character/${this.id}/${name}.png`
    }

    getSelfActionList(player) {
        let player_power = player.power
        console.log("<<",this.belong)
        if (player_power === this.belong) {
            // 自家人
            return [{
                text: "逗逗友军",
                description: "对己方角色造成微量伤害",
                callback(target, source = this) {
                }
            },{
                text: "互换位置",
                description: "和对应的己方角色位置互调",
                callback(target, source = this) {
                }
            }]
        }
        // 敌人
        return []
    }


}

export default CharacterBase;